<!-- 服务商管理|add:添加,delete:删除,edit:编辑 -->
<div style="padding: 10px;"> 
    <form class="layui-form" action="" method="get">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <select class="service_mode" name="service_mode" readonly='readonly'>
                </select>
            </div>
            <div class="layui-input-inline">
                <input type="text" name="name" placeholder="输入服务商" autocomplete="on" class="layui-input" value="{$Think.get.name}">
            </div>
            <div class="layui-input-inline">
                    <input type="text" name="link" placeholder="输入联系人或联系电话" autocomplete="on" class="layui-input" value="{$Think.get.name}">
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn layui-btn-normal">查询</button>
            </div>
        </div>
    </form>
    <div>
        {if $Think.get.filter}
        <div>
            <div class="layui-btn-group" style="width: 100%;">
                <button class="layui-btn layui-btn-sm layui-btn-primary">
                    <a href="{:url('/html/plus/service')}">查看可用记录</a>
                </button>
            </div>
        </div>
        {else/}
        <div>
            <div class="layui-btn-group" style="width: 100%;">
                <button class="layui-btn layui-btn-sm layui-btn-primary" id="add" data-btn='add'>
                    新增
                </button>
                <button class="layui-btn layui-btn-sm layui-btn-primary delete-multiple" data-btn="delete">
                    删除
                </button>
                <button class="layui-btn layui-btn-sm layui-btn-primary" data-btn="delete">
                    <a href="">查看已删除记录</a>
                </button>
            </div>
        </div>
        {/if}
        <div class="table_margin_0">
            <table class="layui-hide" id="service" lay-filter="operation">
        </div>
        </table>
        {if $Think.get.service_mode} {else/}
        <div id="page"></div>
        {/if}
    </div>
</div>

<script type="text/html" id="operation">
    <button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit" data-btn="edit">编辑</button>
    <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-btn="delete">删除</button>
   
</script>
